<template>
    <div class="A">
        <h1>这是第三层AAAA</h1>
        {{data}}
        <B />
    </div>
</template>

<script setup lang="ts">
import B from './B.vue'
import {inject} from 'vue'
let data = inject('flag')

</script>

<style scoped>
.A {
    width: 200px;
    height: 200px;
    padding: 10px;
    background-color: burlywood;
    color: white;
}
</style>